package com.sg.dto.biz.component.req;

import com.sg.dto.biz.component.common.OffsetNdaysInTimePointIntervalDto;
import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @desc OffsetNdaysInTimePointIntervalComReqDto
 * @使用场景
 */
@Data
public class OffsetNdaysInTimePointIntervalComReqDto
        extends BaseDto
        implements Serializable {

    /**
     * 数值比较结果 BEFORE:之前 PRESENT:当前 LATER:之后
     */
    @NotNull(message = "数值比较结果不能为空")
    @ApiModelProperty("数值比较结果")
    private String numCompareResult;

    /**
     * 通用时间字段
     */
    @NotNull(message = "通用时间字段不能为空")
    @ApiModelProperty("通用时间字段")
    private Date comTimeField;

    /**
     * 通用数值字段
     */
    @NotNull(message = "通用数值字段不能为空")
    @ApiModelProperty("通用数值字段")
    private Long comNumField;

    @ApiModelProperty("时间点区间内前后偏移N天列表")
    private List<OffsetNdaysInTimePointIntervalDto> offsetNdaysInTimePointIntervalList = new ArrayList<>();

}
